var WindowUtil = {
    getDocDimention: function() {
        var docDim = { width: 0, height: 0};

        if (document.width) docDim.width = document.width;
        else docDim.width = document.body.scrollWidth;
        
        if (document.height) docDim.height = document.height;
        else docDim.height = document.body.scrollHeight;

        return docDim;
    }
    
}